using AdvancedInspector;
using Holoville.HOTween;
using UnityEngine;

[AdvancedInspector(true)]
public class ObjectRotate : MonoBehaviour
{
	public float time;

	public Vector3 direction = Vector3.up;

	private void Start()
	{
		HOTween.Init();
		Rotate();
	}

	public void Rotate()
	{
		HOTween.To(base.transform, time, new TweenParms().Prop("localEulerAngles", direction * 360f, true).Ease(EaseType.Linear).Loops(-1, LoopType.Incremental));
	}
}
